package cn.bdqn.dao;

import cn.bdqn.pojo.Bank;
import cn.bdqn.pojo.Banner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/25 - 10:56
 */
@Mapper
@Repository
//banner图
public interface BannerMapper {
    //查询banner
    List<Banner> getList();
    //添加banner
    int add(Banner banner);
    //根据id查询banner
    List<Banner> getListById(@Param("id") int id);
    //删除banner
    int delete(@Param("id") int id);
    //修改banner
    int update(Banner banner);
}
